<?php
declare (strict_types = 1);

namespace app\validate;

use think\Validate;

class Avatar extends Validate
{

    protected $rule = [
        'avatar' => 'image|fileSize:4194304'
    ];

    protected $message = [
        'avatar.image' => '请选择正确的文件格式',
        'avatar.fileSize' => '图片不可大于4m'
    ];
}
